home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (3rd Edition)
/
The Business Master (3rd Edition).iso
/
files
/
cataging
/
collectv
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1992-01-20
|
5KB
|
186 lines
echo off
if not '%1' == '' goto nohelp
:help
cls
echo If you have two floppy disk drives, you can install Collect!
echo directly onto a single disk by inserting a blank, formatted
echo disk into the drive that doesn't contain this disk and type:
echo.
echo INSTALL A:
echo.
echo If the blank disk is in drive A, or:
echo.
echo INSTALL B:
echo.
echo If the blank disk is in drive B.
echo.
echo.
echo To install Collect! on a hard disk, type:
echo.
echo INSTALL x:
echo.
echo Where "x" is the letter of the hard disk (C-J). A subdirectory will be
echo created on your hard disk to hold the Collect! files. The default
echo name of this subdirectory is "\collect". To specify a different name,
echo enter it on the command line following the drive letter. For example:
echo.
echo INSTALL C: \coll (The space between C: and \coll is required!)
goto realend
:nohelp
cls
echo.
echo INSTALLING %1 %2
echo.
echo Collect! Installation Batch Program
echo.
if %1 == a: goto floppy
if %1 == A: goto floppy
if %1 == b: goto floppy
if %1 == B: goto floppy
if %1 == c: goto hard
if %1 == C: goto hard
if %1 == d: goto hard
if %1 == D: goto hard
if %1 == e: goto hard
if %1 == E: goto hard
if %1 == f: goto hard
if %1 == F: goto hard
if %1 == g: goto hard
if %1 == G: goto hard
if %1 == h: goto hard
if %1 == H: goto hard
if %1 == i: goto hard
if %1 == I: goto hard
if %1 == j: goto hard
if %1 == J: goto hard
:badparm
echo * YOU HAVE TYPED INVALID PARAMETERS *
echo.
echo The letter of the drive on which to install
echo Collect! must be in the range of A through J.
echo You must type a colon after the drive letter.
echo.
echo If you wish to specify a hard disk sub-directory other than "\collect",
echo you must type a space between the drive letter and the directory name.
echo.
echo Remember too that if you specify a directory name without a leading
echo backslash, the sub-directory will be created inside the specified
echo drive's current directory.
echo.
pause
goto help
:hard
if not '%2' == '' goto custom
:default
if not exist %1\collect goto mk_defl
echo A FILE CALLED "%1\collect" ALREADY EXISTS!
echo.
echo Please delete "%1\collect" or specify a
echo different sub-directory name and try again.
goto end
:mk_defl
echo A sub-directory called %1\COLLECT will be created,
echo and the Collect! files will be copied into it.
echo.
echo To cancel installation at any time,
echo hold down the [Ctrl] key and press [C].
echo.
pause
echo.
echo Creating %1\COLLECT ...
md %1\COLLECT
echo.
echo Copying the program ...
echo.
copy collect!.exe %1\collect
if not exist %1\collect\collect!.EXE goto diskfull
copy *.* %1\collect > NUL
echo.
echo All Done!
echo.
echo To run Collect!, type:
echo.
echo %1
echo CD \COLLECT
goto done
:custom
if not exist %1%2 goto mk_cust
echo * A FILE CALLED "%1%2" ALREADY EXISTS *
echo.
echo Please delete "%1%2" or choose a
echo different sub-directory name and try again.
goto end
:mk_cust
echo A sub-directory called %1%2 will be created.
echo The Collect! files will be copied into it.
echo.
echo To cancel installation at any time,
echo hold down the [Ctrl] key and press [C].
echo.
pause
echo.
echo Creating %1%2 ...
md %1%2
echo.
echo Copying the program ...
echo COLLECT!.EXE
copy COLLECT!.EXE %1%2 > NUL
if not exist %1%2\COLLECT!.EXE goto diskfull
echo Copying Support Files ...
copy *.* %1%2 > NUL
echo.
echo All Done!
echo.
echo To run Collect!, type:
echo.
echo %1
echo CD %2
goto done
:floppy
if '%2' == '' goto floppyok
:nosubdir
echo * YOU HAVE TYPED AN UNEXPECTED SECOND PARAMETER *
echo.
echo You may not install Collect! in a
echo sub-directory of a floppy disk.
echo.
pause
goto help
:floppyok
echo All files on the floppy disk in drive %1 will be erased.
echo The Collect! files will be copied onto it.
echo.
echo If you do NOT want this disk erased,
echo or to cancel installation at any time,
echo hold down the [Ctrl] key and press [C].
echo.
pause
echo.
echo Erasing the floppy disk:
del %1\*.*
echo.
echo Copying the program ...
copy *.* %1 > NUL
echo.
echo All Done!
echo.
echo To run Collect!, type:
echo.
echo. %1
:done
echo Collect!
goto end
:diskfull
echo.
echo.
echo Installation was NOT successful.
echo The disk %1 does not exist or is too
echo full to hold Collect!'s files.
echo.
echo Please free up at least 360K on %1 or
echo install Collect! on a different disk.
echo.
:end
echo.
:realend